<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="itd.db.DBConnection" %>
<%@ page import="itd.domain.Product" %>
<%@ page import="java.math.BigDecimal" %>

<%
String id = request.getParameter("productId");
Product product = DBConnection.getProductDetail(new BigDecimal(id));
BigDecimal idP = product.getId();
String path = product.getImagePath();
String app = request.getContextPath();
%>

<div id="productOptions" >
	<a style="margin: 0px 90px;width: 150px;height: 150px;float: left" href="javascript: requestPage('productCompareShop.jsp', 'productId=<%=idP%>');" ></a>
	<a style="margin: 0px 0px;width: 150px;height: 150px;float: right" href="javascript: requestPage('productCompareSuggestions.jsp', 'productId=<%=idP%>');"></a>
	<img src="<%=app%>/<%=path%>" height="140" width="140" style="margin: 30px 305px; border: 0"/>
	<a style="margin: -10px 90px;width: 150px;height: 150px;float: left" href='javascript: requestPage("productDetalle.jsp", "productId=<%=idP%>") /*alert("Funcionalidad perteneciente a otro modulo")*/'></a>
	<a style="margin: -15px 0px;width: 150px;height: 150px;float: right" href="javascript: requestPage('productCompareSimilar.jsp', 'productId=<%=idP%>');"></a>
</div>
